import { ref } from 'vue'

const visible = ref(false)

export function useCustomLoading() {
  return {
    visible,
    startLoading: () => {
      visible.value = true
    },
    endLoading: () => {
      visible.value = false
    },
  }
}
